.modal-window {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 25, 45, 0.38);
  z-index: 1500;
  padding: 18px;
}

.modal-window[aria-hidden="false"] {
  display: flex;
}

.modal-window__dialog {
  width: min(880px, 96vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: 90vh;
}

.modal-window__header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.export-tabs {
  display: flex;
  gap: 8px;
}

.export-tab {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(247, 249, 253, 0.92);
  font-weight: 600;
  color: #23324c;
  cursor: pointer;
}

.export-tab.is-active {
  background: linear-gradient(135deg, #1f6feb, #5c89ff);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(31, 111, 235, 0.2);
}

.modal-window__body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.modal-window__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.export-tabs {
  display: flex;
  gap: 8px;
}

.export-tab {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(247, 249, 253, 0.92);
  font-weight: 600;
  color: #23324c;
  cursor: pointer;
}

.export-tab.is-active {
  background: linear-gradient(135deg, #1f6feb, #5c89ff);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(31, 111, 235, 0.2);
}

.export-sections {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(247, 249, 253, 0.9);
  padding: 12px;
}

.export-section {
  display: none;
  border-radius: 12px;
  padding: 4px;
}

.export-section.is-active {
  display: block;
}

.export-card__title {
  margin: 0 0 8px;
  font-weight: 700;
  color: #1c2c47;
}

.export-card__hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.export-preview-box {
  height: 160px;
  border: 1px dashed var(--border-dashed);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 2px rgba(12, 29, 64, 0.06);
}
